setPageDurationSource

abstract fun setPageDurationSource(page: DesignBlock, block: DesignBlock)

Set a block as duration source so that the overall page duration is automatically determined by this. If no defining block is set, the page duration is calculated over all children. Only one block per page can be marked as duration source. Will automatically unmark the previously marked.

Note: This is only supported for blocks that have a duration.

Parameters

page

the page block for which it should be enabled.

block

the block which should be marked as duration source.